package com.change.zh.ffmpegdo.push;

/**
 * 用于存放任务id,任务主进程，任务输出线程
 */
public class JobDetail {
    private final String id;//任务id
    private final String room;//任务type
    private final String type;//任务type
    private final Process process;//任务主进程
    private final Thread thread;//任务输出线程

    public JobDetail(String id, String type, Process process, Thread thread) {
        this.id = id + type;
        this.room = id;
        this.type = type;
        this.process = process;
        this.thread = thread;
    }

    public String getId() {
        return id;
    }

    public String getType() {
        return type;
    }

    public String getRoom() {
        return room;
    }

    public Process getProcess() {
        return process;
    }

    public Thread getThread() {
        return thread;
    }

    @Override
    public String toString() {
        return "JobDetail [id=" + id + ",room" + room + ",type" + type + "， process=" + process + ", thread=" + thread + "]";
    }
}
